#include<stdio.h>

int main(){
    int m,n;
    printf("Enter m,n,saperated by white spaces: ");
    if(scanf("%d%d",&m,&n)!=2){
        printf("Invalid input.\n");
        return -1;
    }
    long long r = m * n;
    while(m!=n)if(m>n)m-=n;else n-=m;
    printf("%d",r/m);
    return 0;
}